package com.my.chapter14;

public class practice4 {
    public static void main(String[] args) {
        Shape shape = new Rhomboid();
        if(shape instanceof Rhomboid){
            Rhomboid rhomboid = (Rhomboid) shape;
            System.out.println(rhomboid);
        }
    }
}
